import axios from "axios";

export function getList(params: object) {
  return axios.get('/api/lists', { params })
}


export function getEchartsListType() {
  return axios.get('/api/echarts/list/type')
}

export function deleteList(id: string) {
  return axios.delete(`/api/list/${id}`)
}

export function editList(id: string, data: any) {
  return axios.post(`/api/list/${id}`, data)
}


export function addList(data: any) {
  return axios.put(`/api/list`, data)
}

